package k8s

// CreateServiceRequest 创建Service请求结构体
type CreateServiceRequest struct {
	ServiceJson string `json:"service_json" validate:"required"` // Service JSON字符串
}

// NewDefaultCreateServiceRequest 创建默认的CreateService请求
func NewDefaultCreateServiceRequest() *CreateServiceRequest {
	return &CreateServiceRequest{}
}

// NewCreateServiceRequest 创建CreateService请求
func NewCreateServiceRequest(serviceJson string) *CreateServiceRequest {
	return &CreateServiceRequest{
		ServiceJson: serviceJson,
	}
}

// DeleteServiceRequest 删除Service请求结构体
type DeleteServiceRequest struct {
	Name string `json:"name" validate:"required"` // Service名称
}

// NewDefaultDeleteServiceRequest 创建默认的DeleteService请求
func NewDefaultDeleteServiceRequest() *DeleteServiceRequest {
	return &DeleteServiceRequest{}
}

// NewDeleteServiceRequest 创建DeleteService请求
func NewDeleteServiceRequest(name string) *DeleteServiceRequest {
	return &DeleteServiceRequest{
		Name: name,
	}
}

// GetServiceRequest 获取Service请求结构体
type GetServiceRequest struct {
	Name string `json:"name" validate:"required"` // Service名称
}

// NewDefaultGetServiceRequest 创建默认的GetService请求
func NewDefaultGetServiceRequest() *GetServiceRequest {
	return &GetServiceRequest{}
}

// NewGetServiceRequest 创建GetService请求
func NewGetServiceRequest(name string) *GetServiceRequest {
	return &GetServiceRequest{
		Name: name,
	}
}
